<?php
/**
 * Created by PhpStorm.
 * Author: Sojo
 * Date: 2017/2/16
 * Time: 19:33
 */
namespace App\Api\Service\Routes;

use Dingo\Api\Routing\Router;

class TestRoute
{
    public function map(Router $router)
    {
        $router->group(['namespace' => 'Test\Controllers', 'prefix' => 'test'], function ($router) {
            $router->get('/getOrderDetailTemplate','IndexController@getOrderDetailTemplate');
            $router->post('/getOrderDetailTemplate','IndexController@getOrderDetailTemplate');

            $router->get('/getOrderDetailData','IndexController@getOrderDetailData');
            $router->post('/getOrderDetailData','IndexController@getOrderDetailData');


            $router->get('getContactsData','ContactsController@getContactsData');
            $router->post('getContactsData','ContactsController@getContactsData');
            $router->any('index','IndexController@index');

        });
    }
}